FROM alpine:latest
LABEL maintainer='490336534@qq.com'
LABEL description='ApiTest nginx'

ENV TERM dumb

RUN apk add --update \
	supervisor nginx && \ 
	rm -rf /var/cache/apk/* && \
	mkdir /tmp/nginx && \
	mkdir -p /var/www/html && \
	chown -R nginx:nginx /var/www/html


COPY dist/ /var/www/html/
COPY configs/default.conf /etc/nginx/conf.d/
COPY configs/nginx.conf /etc/nginx/nginx.conf
COPY configs/supervisord.conf /etc/supervisord.conf

VOLUME /var/log/nginx/
VOLUME /var/www/html/
EXPOSE 80 8000 443 9000
CMD ["supervisord"]